//
//  PhotoSelector.h
//  SXH-Bridge
//
//  Created by sxh on 2020/9/10.
//  Copyright © 2020 yuxin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^PhotoCallBack)(id _Nullable result, NSMutableArray * _Nullable errors);

NS_ASSUME_NONNULL_BEGIN

@interface PhotoSelector : NSObject

///可选择的照片最大数量
@property (nonatomic, assign) NSInteger maxSelectCount;

///录制视频时长
@property (nonatomic, assign) NSInteger maxEditVideoTime;

///编辑照片之后是否保存在相册
@property (nonatomic, assign) BOOL saveNewImageAfterEdit;

+ (instancetype)shareInstance;

///打开相机
- (void)openCamera:(PhotoCallBack)completeHandle;

///打开相册
- (void)openPhotos:(PhotoCallBack)completeHandle;

@end

NS_ASSUME_NONNULL_END
